home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / Online / Miami / MiamiSDK / netinclude / netinet / udp.h < prev   
C/C++ Source or Header  |  1997-12-04  |  346b  |  20 lines

  1. #ifndef _NETINET_UDP_H_
  2. #define _NETINET_UDP_H_
  3.  
  4. #ifndef _SYS_TYPES_H_
  5. #include <sys/types.h>
  6. #endif
  7.  
  8. /*
  9.  * Udp protocol header.
  10.  * Per RFC 768, September, 1981.
  11.  */
  12. struct udphdr {
  13.     u_short    uh_sport;        /* source port */
  14.     u_short    uh_dport;        /* destination port */
  15.     short    uh_ulen;        /* udp length */
  16.     u_short    uh_sum;            /* udp checksum */
  17. };
  18.  
  19. #endif
  20.